const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        order: `${i}`,
        dealerCode: 'string',
        dealerId: `dealerId${i}`,
        country: '中国',
        planCode: `planCode${i}`,
        orderPlanYear: 2020,
        orderPlanMonth: 3,
        createTime: '2020-03-31T04:06:51.963Z',
        totalFee: 100000,
        planVarietySum: 1000,
        emergencyAmount: 4561651,
        emergencyPercent: 0.25,
        code: 'code',
        submitTime: '2019-10-08T07:29:54.423Z',
        saleAmount: 131322,
        saleVarietySum: 30,
        conformVariety: 20,
        planOrderVariety: 18,
        planVarietyRate: 0.16,
        planMonthStockVarietyRate: 0.45,
        planMonthStockAmountRate: 0.25,
        planMonthShipmentVarietyRate: 0.35,
        planMonthShipmentAmountRate: 0.51,
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});
router.get('/details', (req, res) => {
    const content = [];
    for(let i = 0; i < 10; i++) content.push({
        id: `${i + 1}`,
        partCode: 'partCode',
        partName: 'partName',
        engName: 'engName',
        n2Quantity: 52.5,
        totalFee: 546513123,
        saleQuantity: 123,
        saleAmount: 1345642,
        planComQuantity: 1235,
        planComAmount: 561321,
        planMonthStockQuantity: 2213,
        planMonthStockAmount: 32132132,
        planMonthShipmentQuantity: 1230,
        planMonthShipmentAmount: 84612313,
        submitTime: '2020-03-31T04:16:11.184Z',
        price: 200,
        code: 'code',
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 10,
        }
    });
});
router.get('/export', (req, res) => {
    res.json({
        message: '导出'
    });
});
router.get('/exportDetails', (req, res) => {
    res.json({
        message: '导出明细'
    });
});
module.exports = router;
